import request from '@/request'
const URL = process.env.VUE_APP_API
// 列表
export function getList(params) {
  console.log(params, ' 列表-----')
  return request({
    url: `${URL}/manage/upms/org/tree`,
    method: 'get',
    params
  })
}

// 新增-编辑
export function orgAddAndEidt(data) {
  return request({
    url: `${URL}/manage/upms/org/add`,
    method: 'post',
    data
  })
}

// 查看
export function orgAddAndEidtInfo(params) {
  return request({
    url: `${URL}/manage/upms/org/info`,
    method: 'get',
    params
  })
}

// 禁用
export function orgLock(params) {
  return request({
    url: `${URL}/manage/upms/org/lock`,
    method: 'post',
    params
  })
}

// 删除
export function orgDelete(params) {
  return request({
    url: `${URL}/manage/upms/org/delete`,
    method: 'get',
    params
  })
}
